const process = this.pageObj.getApiWidgetByAliasName('modal-process');
// const $form = this.getApiPage().getApiWidgetByAliasName('judge-content')?.widgetObj;

// this.pageObj.getApiWidgetsByClassName('event-operate')?.forEach(v => v.hideWidget());

// if (process && $form?._option) {
//   const { dataSource } = $form._option;

//   if (dataSource) {
//     const configs = process?.widgetObj.configs();
//     const config = configs['自定义内容']('解除演练');
//     const modal = process?.widgetObj.getModal();
//     modal.type = '解除演练';
//     process?.widgetObj.renderModal(config, { ...dataSource, eventId: dataSource.id });
//     process?.widgetObj.show({ width: 600, height: 400 });
//   }
// }


const modal = process.widgetObj.getModal();
const $widget = this.getApiPage().getApiWidgetByAliasName('演练标签页')?.widgetObj;
const drillModal = $widget?.getModal();
const type = drillModal?.type;

this.pageObj.getApiWidgetsByClassName('event-operate')?.forEach(v => v.hideWidget());

drillModal.defaultData.disableFlag = 3;

$widget.tab._option.defaultKey = 'progress'
$widget.tab.render()
$widget?.initEventStateProcessRecord?.()


